<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 400px;
            height: 400px;
            background-color: pink;
            position: relative;
            bottom: 50px;
            overflow: hidden;
        }
        .box:hover .box2{
            bottom: 0;

        }
        .box2{
            position: absolute;
            bottom: -100px;
            width: 400px;
            height: 100px;
            background-color: rgb(240, 3, 43);
            transition: 0.5s;

        }
    </style>
</head>
<body>
    <div class="box">
        <div class="box2"></div>
    </div>
    
</body>
</html>